package com.atguigu.lease.app.mapper;

import com.atguigu.lease.model.bean.RoomInfo;
import com.atguigu.lease.model.vo.apartment.GraphVo;
import com.atguigu.lease.model.vo.app.RoomDetailVo;
import com.atguigu.lease.model.vo.app.RoomItemVo;
import com.atguigu.lease.model.vo.app.RoomQueryVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author YouKinn
 * @description 针对表【room_info(房间信息表)】的数据库操作Mapper
 * @createDate 2025-06-20 20:18:17
 * @Entity com.atguigu.lease.model.bean.RoomInfo
 */
public interface RoomInfoMapper extends BaseMapper<RoomInfo> {
    Page<RoomItemVo> selectRoomItemVoPageItem(Page<RoomItemVo> roomItemVoPage,
                                              @Param("queryVo") RoomQueryVo queryVo);

    List<GraphVo> selectGraphVoListByRoomId(Long roomId);

    RoomDetailVo selectRoomDetailVoById(Long id);

    Page<RoomItemVo> selectRoomItemVoPageItemByApartmentId(Page<RoomItemVo> roomItemVoPage,
                                                           @Param("apartmentId") Long apartmentId);
}




